
<div id="foodnutritions-add-edit">

    <div class="title">
        修改 <{$data.name}> 的营养信息 <span style="font-size: 13px;">( 含量: 每100克 )<span>
    </div>
    <form action="__APP__/FoodNutritions/update" method="post" id="form">
        <input type="hidden" name="id" value="<{$Think.get.id}>" />
        <div class="content">
            <div class="left">
                <div class="food">
                    <dl>
                        <dt><strong><{$data.name}></strong></dt>
                        <empty name="data.image">
                                <dd style="text-align: center;"><img src="__PUBLIC__/Content/FoodArticle/default.jpg" /></dd>
                            <else/>
                                <dd style="text-align: center;"><img src="__PUBLIC__/Content/FoodArticle/<{$data.image}>" /></dd>
                        </empty>
                        <dd><strong>所分类:</strong><{$data.foodcategory.name}></dd>
                        <dd><strong>所栏目:</strong><{$data.foodsection.name}></dd>
                        <dd><strong>描述:</strong></dd>
                        <gt name="data.description|mb_strlen='utf-8'" value="300">
                            <dd style="text-indent: 30px;word-break:normal;"><{$data.description|mb_substr=0,300,"utf-8"}>...</dd>
                            <else/>
                            <dd style="text-indent: 30px;word-break:normal;"><{$data.description}></dd>
                        </gt>
                    </dl>
                </div>
            </div>
            <div class="right">
                <ul>
                    <li class="textmiddle">Calories:</li>
                    <li><input type="text" name="calories" value="<{$datas.calories}>" />&nbsp;g</li>
                    <li class="textmiddle">Total Fat:</li>
                    <li><input type="text" name="total-fat" value="<{$datas.total-fat}>" />&nbsp;g</li>
                    <li class="textmiddle">Saturated Fat:</li>
                    <li><input type="text" name="saturated-fat" value="<{$datas.saturated-fat}>" />&nbsp;g</li>
                    <li class="textmiddle">Cholesterol:</li>
                    <li><input type="text" name="cholesterol" value="<{$datas.cholesterol}>" />mg</li>
                    <li class="textmiddle">Sodium:</li>
                    <li><input type="text" name="sodium" value="<{$datas.sodium}>" />mg</li>
                    <li class="textmiddle">Potassium:</li>
                    <li><input type="text" name="potassium" value="<{$datas.potassium}>" />mg</li>
                    <li class="textmiddle">Total Carbohydrate:</li>
                    <li><input type="text" name="total-carbohydrate" value="<{$datas.total-carbohydrate}>" />&nbsp;g</li>
                    <li class="textmiddle">Dietary Fiber:</li>
                    <li><input type="text" name="dietary-fiber" value="<{$datas.dietary-fiber}>" />&nbsp;g</li>
                    <li class="textmiddle">Sugars:</li>
                    <li><input type="text" name="sugars" value="<{$datas.sugars}>" />&nbsp;g</li>
                    <li class="textmiddle">Protein:</li>
                    <li><input type="text" name="protein" value="<{$datas.protein}>" />&nbsp;g</li>
                </ul>
            </div>
            <div class="right">
                <ul>
                    <li>Vitamin A:</li>
                    <li><input type="text" name="vitamin-a" value="<{$datas.vitamin-a}>" />%</li>
                    <li>Vitamin B-12:</li>
                    <li><input type="text" name="vitamin-b-12" value="<{$datas.vitamin-b-12}>" />%</li>
                    <li>Vitamin B-6:</li>
                    <li><input type="text" name="vitamin-b-6" value="<{$datas.vitamin-b-6}>" />%</li>
                    <li>Vitamin C:</li>
                    <li><input type="text" name="vitamin-c" value="<{$datas.vitamin-c}>" />%</li>
                    <li>Vitamin D:</li>
                    <li><input type="text" name="vitamin-d" value="<{$datas.vitamin-d}>" />%</li>
                    <li>Vitamin E:</li>
                    <li><input type="text" name="vitamin-e" value="<{$datas.vitamin-e}>" />%</li>
                    <li>Calcium:</li>
                    <li><input type="text" name="calcium" value="<{$datas.calcium}>" />%</li>
                    <li>Copper:</li>
                    <li><input type="text" name="copper" value="<{$datas.copper}>" />%</li>
                    <li>Folate:</li>
                    <li><input type="text" name="folate" value="<{$datas.folate}>" />%</li>
                    <li>Iron:</li>
                    <li><input type="text" name="iron" value="<{$datas.iron}>" />%</li>
                    <li><input style="background:#dcdcdc;text-align: center;" type="submit" class="submit" value="修改" />&nbsp;</li>
                </ul>
            </div>
            <div class="right">
                <ul>
                    <li class="textmiddle">Magnesium:</li>
                    <li><input type="text" name="magnesium" value="<{$datas.magnesium}>" />%</li>
                    <li class="textmiddle">Manganese:</li>
                    <li><input type="text" name="manganese" value="<{$datas.manganese}>" />%</li>
                    <li class="textmiddle">Niacin:</li>
                    <li><input type="text" name="niacin" value="<{$datas.niacin}>" />%</li>
                    <li class="textmiddle">Pantothenic Acid:</li>
                    <li><input type="text" name="pantothenic-acid" value="<{$datas.pantothenic-acid}>" />%</li>
                    <li class="textmiddle">Phosphorus:</li>
                    <li><input type="text" name="phosphorus" value="<{$datas.phosphorus}>" />%</li>
                    <li class="textmiddle">Riboflavin:</li>
                    <li><input type="text" name="riboflavin" value="<{$datas.riboflavin}>" />%</li>
                    <li class="textmiddle">Selenium:</li>
                    <li><input type="text" name="selenium" value="<{$datas.selenium}>" />%</li>
                    <li class="textmiddle">Thiamin:</li>
                    <li><input type="text" name="thiamin" value="<{$datas.thiamin}>" />%</li>
                    <li class="textmiddle">Zinc:</li>
                    <li><input type="text" name="zinc" value="<{$datas.zinc}>" />%</li>
                </ul>
            </div>

        </div>
    </form>
</div>
<script type="text/javascript" src="../Public/js/foodnutritions.js"></script>
